package com.viqiang.ye.exception;

import com.viqiang.ye.api.IErrorCode;

/**
 * @ClassName Asserts
 * @Description
 * @Author viqiang
 * @Date 2020/5/13 21:47
 * @Version 1.0
 */
public class Asserts {
    public static void fail(String message) {
        throw new ApiException(message);
    };

    public static void fail(IErrorCode errorCode){
        throw new ApiException(errorCode);
    }
}
